<h3>글 관리</h3>
<table>
	<tr>
		<td>제목</td>
		<td>글쓴이</td>
		<td>작성 시간</td>
		<td>댓글</td>
		<td colspan="2"></td>
	</tr>
	<% for article in @articles %>
	<tr>
		<td><%= link_to h(article.title), :action => 'show', :id => article %></td>
		<td><%= h(article.user.name) %></td>
		<td><%= article.created_at.strftime("%m/%d %H:%m") %></td>
		<td><%= link_to '수정', :action => 'edit', :id => article %></td>
		<td><%= link_to '삭제', {:action => 'destory', :id => article}, :confirm => '정말로 삭제하시겠습니까?', :method => :post %></td>
	</tr>
	<% end %>
</table>

<%= pagination_links(@article_pages) %>
<br/>
<%= link_to '새글 작성', :action => 'new' %>